]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: fix stacking for newly added actors
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 14 Feb 2011 21:09:10 +0000 (16:09 -0500)
committerOwen W. Taylor <otaylor@fishsoup.net>
Sun, 20 Feb 2011 17:38:10 +0000 (12:38 -0500)
We don't necessarily get a syncStacking call when an actor is added
at the top of the workspace, so make sure to set the stackAbove value
for it correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=642329

js/ui/workspaceThumbnail.js

index f555bba4e86d3d9e032ba82ad56457299759cbd5..6d44e23580f71e473bb2ca5a576a4653322cd932 100644 (file)
@@ -317,6 +317,11 @@ WorkspaceThumbnail.prototype = {
                       }));
         this._contents.add_actor(clone.actor);
 
+        if (this._windows.length == 0)
+            clone.setStackAbove(this._background);
+        else
+            clone.setStackAbove(this._windows[this._windows.length - 1].actor);
+
         this._windows.push(clone);
 
         return clone;